package com.ruicar.afs.cloud.apply.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @description: 业务选择配置表
 * @author: sijun.yu
 * @date: 2020/5/11 18:31
 */
@Data
@TableName(value = "apply_business_config", autoResultMap = true)
@Accessors(chain = true)
public class ApplyBusinessConfig extends BaseEntity<ApplyBusinessConfig> {

    /**
     * 业务场景
     */
    private String businessName;
    /**
     * 业务描述
     */
    private String businessDesc;
    /**
     * 业务类型
     */
    private String businessType;
    /**
     * 车辆类型
     */
    private String carType;
    /**
     * 车辆属性
     */
    private String carNature;
    /**
     * 运营方式
     */
    private String operateWay;
    /**
     * 挂靠方式
     */
    private String affiliatedWay;
    /**
     * 购车目的
     */
    private String carPurpose;
    /**
     * 尽调报告是否显示
     */
    private String isDueDiligence;
    /**
     * 原子id
     */
    private String atomId;
    /**
     * 业务类型
     */
    @TableField(exist = false)
    private String[] businessTypeTemp;

    /**
     * 车辆类型
     */
    @TableField(exist = false)
    private String[] carTypeTemp;

    /**
     * 车辆属性
     */
    @TableField(exist = false)
    private String[] carNatureTemp;

    /**
     * 运营方式
     */
    @TableField(exist = false)
    private String[] operateWayTemp;

    /**
     * 挂靠方式
     */
    @TableField(exist = false)
    private String[] affiliatedWayTemp;

    /**
     * 购车目的
     */
    @TableField(exist = false)
    private String[] carPurposeTemp;

    public String[] getBusinessTypeTemp() {
        return new String[]{this.businessType};
    }

    public void setBusinessTypeTemp(String[] businessTypeTemp) {
        if (businessTypeTemp.length > 0) {
            this.businessType = businessTypeTemp[0];
        }
        this.businessTypeTemp = businessTypeTemp;
    }

    public String[] getCarTypeTemp() {
        return new String[]{this.carType};
    }

    public void setCarTypeTemp(String[] carTypeTemp) {
        if (carTypeTemp.length > 0) {
            this.carType = carTypeTemp[0];
        }
        this.carTypeTemp = carTypeTemp;
    }

    public String[] getCarNatureTemp() {
        return new String[]{carNature};
    }

    public void setCarNatureTemp(String[] carNatureTemp) {
        if (carNatureTemp.length > 0) {
            this.carNature = carNatureTemp[0];
        }
        this.carNatureTemp = carNatureTemp;
    }

    public String[] getOperateWayTemp() {
        return new String[]{operateWay};
    }

    public void setOperateWayTemp(String[] operateWayTemp) {
        if (operateWayTemp.length > 0) {
            this.operateWay = operateWayTemp[0];
        }
        this.operateWayTemp = operateWayTemp;
    }

    public String[] getAffiliatedWayTemp() {
        return new String[]{affiliatedWay};
    }

    public void setAffiliatedWayTemp(String[] affiliatedWayTemp) {
        if (affiliatedWayTemp.length > 0) {
            this.affiliatedWay = affiliatedWayTemp[0];
        }
        this.affiliatedWayTemp = affiliatedWayTemp;
    }

    public String[] getCarPurposeTemp() {
        return new String[]{carPurpose};
    }

    public void setCarPurposeTemp(String[] carPurposeTemp) {
        if (carPurposeTemp.length > 0) {
            this.carPurpose = carPurposeTemp[0];
        }
        this.carPurposeTemp = carPurposeTemp;
    }


}
